//
//  UserDefaultsExt.swift
//  WNLockDemo
//
//  Created by 裴威 on 01/09/2018.
//  Copyright © 2018 wunu. All rights reserved.
//

import Foundation

let UserDefaultsTokenKey = "UserDefaultsTokenKey"
extension UserDefaults {
    func getToken() -> String? {
        return UserDefaults.standard.object(forKey: UserDefaultsTokenKey) as? String
    }
    func saveToken(token: String) {
        UserDefaults.standard.set(token, forKey: UserDefaultsTokenKey)
    }
}
